const passport = require('passport');
const LocalStrategy = require('passport-local').Strategy;
const Strategy = require('passport-http-bearer').Strategy;


var jwt = require("jsonwebtoken");

var _ = require('lodash');

var jwt_config = {
        "secretKey":"itcast",
        "expiresIn":86400
    }


// 通过登录函数初始化
/**
 * 初始化 passport 框架
 *
 * @param  {[type]}   app       全局应用程序
 * @param  {[type]}   loginFunc 登录函数
 * @param  {Function} callback  回调函数
 */


module.exports.setup = function() {

};
